package org.robotfish.geometry;

import static org.junit.Assert.*;

import org.ejml.simple.SimpleMatrix;
import org.junit.Test;
import org.robotfish.utils.SVGDocument;

public class SVGtest {

	@Test
	public void test() {
		
		SVGDocument trnSVGDocument   = new SVGDocument();
		
		
		SimpleMatrix start = new SimpleMatrix(new double[][] {{0}, {0}});
		SimpleMatrix end = new SimpleMatrix(new double[][] {{7}, {5}});
		SimpleMatrix startRay = new SimpleMatrix(new double[][] {{0}, {0}, {0}});
		SimpleMatrix endRay = new SimpleMatrix(new double[][] {{20}, {20}, {Math.PI*0.5}});
		
		trnSVGDocument.addLine(start, end, "yellow");
		trnSVGDocument.addArc(startRay, endRay, 1.0/20, "green");
		trnSVGDocument.addText(start, "proovi text", "blue");
		
		System.out.println(trnSVGDocument);

	}

}
